package com.sky.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * SpringTask入门案例
 *
 * @Author Vsunks.v
 * @Date 2023/5/12 9:44
 * @Blog blog.sunxiaowei.net/996.mba
 * @Description: SpringTask入门案例
 */
@Slf4j
// @Component
public class SpringTaskDemo {


    // @Scheduled(cron = "0/5 * * * * ?")
    public void schedulTask1() {
        log.info("定时任务执行中：{}", LocalDateTime.now());
    }
}
